[. . . ] HP StorageWorks Replication Solutions Manager user guide Part number: T3680-96167 Third edition: February 2008 Legal and notice information © Copyright 2004-2008 Hewlett-Packard Development Company, L. P. Consistent with FAR 12. 211 and 12. 212, Commercial Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U. S. The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. [. . . ] SetDrGroupIoMode ($site_1_array_DR_Group_name_unc, ASYNCHRONOUS) onerror continue // // Present the snapclone at Site 2 to a host. // Typically you will NOT want to present to an Enabled Host Agent, but instead // use the name of a 'dummy' EVA host that you have set up in Command View. PresentStorageVolume ($Rep1, $host_name, %LUN1%, READ_WRITE) onerror pauseat E2: // // Make a DR group with the Site 3 storage system. $DRG1 = CreateDrGroup ($DR_group_name, $DR_source_storvol_unc1, $site_3_array, "", "", SAME, "", "", 0, FALSE) onerror pauseat E3: // // Check the state of the DR group before we continue. WaitDrGroupNormalization ($DRG1) // // Delete the DR group from Site 2 to Site 3, but keep the copy at Site 3. ddgwt: Wait ("0:0:3" DeleteDrGroup ($DR_group_name, DETACH) onerror goto ddgwt: // // Delete the presentation. E3: UnpresentStorageVolume ($Rep1, $host_name) onerror pauseat E3: // // Delete the snapclone(s) at Site 2 that the DR group was using. E2: DeleteStorageVolume ($Rep1) onerror pauseat E2: // Exit (SUCCESS) // // Failure exit - no rollback needed. E1: Exit (FAILURE) HP StorageWorks Replication Solutions Manager 215 Perform planned failover (template) Template summary Performs a failover of two sites in the case where the source site resources and link remain available. he DR group pair contains one storage volume (virtual disk) at the source and destination sites. Discovers the host volume at site 2 Mounts host volume on the enabled host at site 2. Starts applications on enabled host at site 2. Guidelines apply. Template options · Include e-mail notification. See SetNotificationPolicy. Comments · Guidelines apply. Example This template was generated to perform one iteration of a planned failover of a DR group pair that contains one virtual disk. No template option was selected. 216 Jobs Line Task 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 // Perform a planned failover of a CA configuration. $site_2_array = SetVariable(%site_2_array%) $site_1_host = SetVariable(%site_1_host% $site_2_host = SetVariable(%site_2_host%) $site_1_host_hostvol_unc = SetVariable(%site_1_host_hostvol_unc%) // // Validate that resources are as expected. ValidateHost ($site_1_host) ValidateHost ($site_2_host) ValidateStorageSystem ($site_2_array) // // Execute any necessary commands on the host to get the volumes ready to dismount, // such as export volumegroups, stop the local application running on the volume(s), etc. UnmountHostVolume ($site_1_host_hostvol_unc) // Failover all DR groups to the remote site. FailoverDrGroups ( %DR_group_name_list%, FALSE ) // // Do a bus scan for the new volumes, make sure that new devices are seen by multipath driver. DiscoverDiskDevicesForDrGroup($site_2_host, %DR_group_name%) // // Execute any necessary commands on the remote host to get the volumes ready to mount, // such as import volumegroups, fsck volumes, etc. Pause() // Exit (SUCCESS // HP StorageWorks Replication Solutions Manager 217 Perform unplanned failover (template) Template summary Performs an unplanned failover of two sites in the case where the source site resources or link is no longer available. The DR group pair contains one storage volume (virtual disk) at the source and destination sites. Pauses the job prior to mounting the host volume on the enabled host at site 2. Template options · Include e-mail notification. IMPORTANT: During actual emergencies, HP recommends that you manually perform a failover by using the Failover action in the GUI. Example This template was generated to perform one iteration of an unplanned failover of a DR group pair containing one virtual disk. 218 Jobs Line Task 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 // Perform an unplanned failover of a CA configuration. [. . . ] a[dd] host_a[gent]|ha <host agent name> 1. HP StorageWorks Replication Solutions Manager 451 452 CLUI 13 Glossary Glossary array Short for storage array. See storage array. container A container is virtual disk space that is preallocated for later use as a snapclone or a snapshot. For details, see containers topic. controller software (VCS / XCS) Controller software is low-level software (firmware) used by array controllers to run a storage array. In HP Replication Solutions Manager environments, the arrays may be running VCS or XCS versions that support different features. [. . . ]